package com.kmxd.ams.client.use.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.kmxd.ams.client.search.vo.SearchAuthVO;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 借阅车表
 *
 * @author nickbi
 * @since 2023-01-10
 */
@Data
@ColumnWidth(15)
@HeadRowHeight(15)
@ContentRowHeight(15)
@HeadStyle
@HeadFontStyle(fontHeightInPoints = 12)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
@ContentFontStyle(fontHeightInPoints = 10)
@ExcelIgnoreUnannotated
@Schema(description = "借阅车表对象")
public class UseBorrowCarListVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "主键ID")
  private Long id;

  @Schema(description = "公司ID")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "公司ID")
  private Long comId;

  @Schema(description = "全宗ID")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "全宗ID")
  private Long fondsId;

  @Schema(description = "用户ID")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "用户ID")
  private Long userId;

  @Schema(description = "所属部门ID")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "所属部门ID")
  private Long deptId;

  @Schema(description = "档案id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "档案id")
  private Long archId;

  @Schema(description = "档案类型id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "档案类型id")
  private Long archTypeId;

  @Schema(description = "档案门类")
  @ExcelProperty(value = "档案门类")
  private String archTypeName;

  @Schema(description = "档案表名")
  @ExcelProperty(value = "档案表名")
  private String tableId;

  @Schema(description = "档号")
  @ExcelProperty(value = "档号")
  private String archCode;

  @Schema(description = "题名")
  @ExcelProperty(value = "题名")
  private String archTitle;

  @Schema(description = "密级")
  @ExcelProperty(value = "密级")
  private String security;

  @Schema(description = "年度")
  @ExcelProperty(value = "年度")
  private Integer year;

  @Schema(description = "文号")
  @ExcelProperty(value = "文号")
  private String docNumber;

  @Schema(description = "实体(份)")
  @ExcelProperty(value = "实体(份)")
  private Integer fillingNum;

  @Schema(description = "电子文件数量")
  @ExcelProperty(value = "电子文件数量")
  private Integer filesNum;

  @Schema(description = "实体归档")
  @ExcelProperty(value = "实体归档")
  private String physicalType;

  @Schema(description = "电子归档")
  @ExcelProperty(value = "电子归档")
  private String eType;

  @Schema(description = "成文日期")
  @ExcelProperty(value = "成文日期")
  private String docDate;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "创建人")
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ColumnWidth(20)
  @ExcelProperty(value = "创建时间")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "更新人")
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ColumnWidth(20)
  @ExcelProperty(value = "更新时间")
  private Date updateTime;

  @Schema(description = "删除状态(0-正常,1-已删除)")
  @ExcelProperty(value = "删除状态(0-正常,1-已删除)")
  private Long delFlag;

  @Schema(description = "已有权限")
  @ExcelProperty(value = "已有权限")
  private SearchAuthVO auth;

  @Schema(description = "库存量")
  @JsonSerialize(using = ToStringSerializer.class)
  private Integer storageNum;
}
